<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let uname = prompt('请输入姓名'),
            age = prompt('请输入年龄');
        sex = prompt('请输入性别');
        document.write('用户的姓名：' + uname);
        document.write('<br>用户的年龄：' + age);
        document.write('<br>用户的性别：' + sex);
    </script>
</body>

</html>